package com.tjp.eight.ui.fragment.report;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.tjp.eight.R;
import com.tjp.eight.ui.fragment.BaseFragment;

import butterknife.ButterKnife;

/**
 * Created by Administrator on 2017/3/28.
 */
public class FragmentReport extends BaseFragment<ReportPresenter> implements ReportView {
    @Override
    protected ReportPresenter createPresenter() {
        return new ReportPresenter(this);
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        contentView = super.onCreateView(inflater, container, savedInstanceState);
        if (contentView == null) {
            contentView = inflater.inflate(R.layout.fragment_report, container, false);
        }
        ButterKnife.bind(this, contentView);
        return contentView;
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        ButterKnife.unbind(this);
    }
}
